package com.danny.mapper;

import com.danny.pojo.RoomReserve;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface RoomReserveMapper {
    List<RoomReserve> queryRoomReserve(RoomReserve roomReserve);

    List<RoomReserve> queryAllRoomReserve();

    List<RoomReserve> queryRoomReserveLimit(Map<String,Object> map);

    List<RoomReserve> queryRoomReserveLimitHasInput(Map<String,Object>map);

    int roomReserveCount();

    int roomReserveCountHasInput(RoomReserve roomReserve);

    int addRoomReserve(RoomReserve roomReserve);

    int updateRoomReserve(RoomReserve roomReserve);

    int deleteRoomReserveByGuestId(String id);

    int deleteRoomReserveByReserveNo(int no);
}
